package chenjiuxu.seniorui.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;

import java.util.ArrayList;


public class NineLatticeLayout extends ViewGroup {


    private int column = 3;//列
    private int line = 3;//行
    private int spacing = 20;
    ArrayList<View> cache;//缓存数组


    public NineLatticeLayout(Context context, AttributeSet attrs) {
        super(context, attrs);
        cache = new ArrayList<>();
    }


    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        int width = MeasureSpec.getSize(widthMeasureSpec);


        setMeasuredDimension(width, width);
    }

    @Override
    protected void onLayout(boolean changed, int l, int t, int r, int b) {


    }


    public void layoutView(int number) {




    }


}
